package cn.gcyl.module.biz.dal.mysql.contactplatform;

import cn.gcyl.framework.common.pojo.PageResult;
import cn.gcyl.framework.mybatis.core.mapper.BaseMapperX;
import cn.gcyl.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.gcyl.module.biz.controller.admin.contactplatform.vo.*;
import cn.gcyl.module.biz.dal.dataobject.contactplatform.ContactPlatformDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 联系平台 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface ContactPlatformMapper extends BaseMapperX<ContactPlatformDO> {

    default PageResult<ContactPlatformDO> selectPage(ContactPlatformPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<ContactPlatformDO>()
                .orderByDesc(ContactPlatformDO::getId));
    }

}